import Vue from 'vue';
import Router from 'vue-router';
//引入子路由
import common from '@/router/common';
import sysOrgRouter from '@/router/sys/org/index';
import sysPermissionRouter from '@/router/sys/permission/index';
import sysConfigRouter from '@/router/sys/config/index';
import sysEnumsRouter from '@/router/sys/enums/index';
import sysJobRouter from '@/router/sys/job/index';
import sysLogRouter from '@/router/sys/log/index';
import sysCategoryRouter from '@/router/sys/category/index';
import codeGenerateRouter from '@/router/code/generate/index'


Vue.use(Router);


export default new Router({
    routes: [
        ...common,
        ...sysOrgRouter,
        ...sysPermissionRouter,
        ...sysConfigRouter,
        ...sysEnumsRouter,
        ...sysJobRouter,
        ...sysLogRouter,
        ...sysCategoryRouter,
        ...codeGenerateRouter
    ]
})
